EvalJavaScriptWithArguments
Type
handler
Summary
Evaluate JavaScript code within the browser with arguments
Syntax
EvalJavaScriptWithArguments(<pScript>,<pArgs>)
Description
Use EvalJavaScriptWithArguments to get the result of running a block of JavaScript code, where you need to pass values to the script.
Parameters
| Name | Type | Description |
|---|---|---|
pScript | The script to evaluate | |
pArgs | The list of arguments to pass to the script |
Examples
variable mButton as JSObject
public handler SetButtonText(in pText as String)
EvalJavaScriptWithArguments("arguments[0].innerHTML = arguments[1]", [mButton, pText])
end handler
Value
| Name | Type | Description |
|---|---|---|
return | A value of any type |